package com.ctshk.rpc.ship.dto;

import com.ctshk.common.utils.anno.ColumnMapping;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 船票产品信息req
 * </p>
 *
 * @author 刘蕾
 * @since 2021年03月05日
 */
@Data
@ApiModel(value = "ShipProductDTO对象", description = "船票产品信息DTO")
public class ShipProductDTO implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "产品ID")
    private Long id;

    @ApiModelProperty(value = "产品编号")
    private String code;

    @ApiModelProperty(value = "船公司类型(1 信德船票，2 珠江船票)")
    private String companyType;

    @ColumnMapping(fieldId = "companyType",mapping = {"1","信德船票","2","珠江船票"})
    @ApiModelProperty(value = "船公司类型(1 信德船票，2 珠江船票)")
    private String companyTypeDesc;

    @ApiModelProperty(value = "出发城市id")
    private Long depCityId;

    @ApiModelProperty(value = "出发城市名称")
    private String depCityName;

    @ApiModelProperty(value = "到达城市id")
    private Long arrCityId;

    @ApiModelProperty(value = "到达城市名称")
    private String arrCityName;

    @ApiModelProperty(value = "航线id")
    private Long routeId;

    @ApiModelProperty(value = "航线名称")
    private String routeName;

    @ApiModelProperty(value = "船种id")
    private Long shipTypeId;

    @ApiModelProperty(value = "船种名称")
    private String shipTypeName;

    @ApiModelProperty(value = "航次码")
    private String voyage;

    @ApiModelProperty(value = "格式化的出发时间")
    private String depTime;

    @ApiModelProperty(value = "出发时间开始")
    private LocalDateTime depTimeStart;

    @ApiModelProperty(value = "出发时间结束")
    private LocalDateTime depTimeEnd;

    @ApiModelProperty(value = "到达时间开始")
    private LocalDateTime arrTimeStart;

    @ApiModelProperty(value = "到达时间结束")
    private LocalDateTime arrTimeEnd;

    @ApiModelProperty(value = "出发地id")
    private Integer depPlaceId;

    @ApiModelProperty(value = "到达地id")
    private Integer arrPlaceId;

    @ApiModelProperty(value = "出发地名称")
    private String depPlaceName;

    @ApiModelProperty(value = "到达地名称")
    private String arrPlaceName;

    @ApiModelProperty(value = "船舱等级(1 普通舱，2 高级舱，3 豪华舱)")
    private String cabinClassName;

    @ApiModelProperty(value = "可售座位号(珠江船票)，多个逗号分隔")
    private String availableSeat;

    @ApiModelProperty(value = "库存(珠江船票)")
    private Integer stock;

    @ApiModelProperty(value = "供应商id(信德船票)")
    private Long supplierId;

    @ApiModelProperty(value = "供应商名称(信德船票)")
    private String supplierName;

    @ApiModelProperty(value = "负责人id")
    private Long chargeUserId;

    @ApiModelProperty(value = "负责人名称")
    private String chargeUserName;

    @ApiModelProperty(value = "适用人群id")
    private Long applicableCrowdId;

    @ApiModelProperty(value = "适用人群名称")
    private String applicableCrowdName;

    @ApiModelProperty(value = "打包状态（1：允许打包 2：不允许打包 3：只限打包）")
    private Integer packStatus;

    @ApiModelProperty(value = "打包状态（1：允许打包 2：不允许打包 3：只限打包）")
    @ColumnMapping(fieldId = "packStatus",mapping = {"1","允许打包","2","不允许打包","3","只限打包"})
    private String packStatusDesc;

    @ApiModelProperty(value = "产品来源")
    private String productSource;

    @ApiModelProperty(value = "产品来源 1手工产品 2API")
    @ColumnMapping(fieldId = "productSource",mapping = {"1","手工产品","2","API产品"})
    private String productSourceDesc;

    @ApiModelProperty(value = "审批状态（1 待提交，2 待审批，3 审批中，4 审批不通过，5 审批通过）")
    private Integer approvalStatus;

    @ApiModelProperty(value = "审批状态（1 待提交，2 待审批，3 审批中，4 审批不通过，5 审批通过）")
    @ColumnMapping(fieldId = "approvalStatus",mapping = {"1","待提交","2","待审批","3","审批中","4","审批不通过","5","审批通过"})
    private String approvalStatusDesc;

    @ApiModelProperty(value = "售卖状态（0 无效，1 有效）当审批状态为通过时才会有售卖状态1")
    private Integer sellStatus;

    @ApiModelProperty(value = "售卖状态（0 无效，1 有效）当审批状态为通过时才会有售卖状态1")
    @ColumnMapping(fieldId = "sellStatus",mapping = {"0","无效","1","有效"})
    private String sellStatusDesc;

    @ApiModelProperty(value = "上架状态（0 未上架，1 已上架）")
    private Integer shelvesStatus;

    @ApiModelProperty(value = "上架状态（0 未上架，1 已上架）")
    @ColumnMapping(fieldId = "shelvesStatus",mapping = {"0","未上架","1","已上架"})
    private String shelvesStatusDesc;

}
